package org.come.gltools;

import com.tool.tcpimg.UIUtils;
import org.come.Frame.HuangJframe;
import org.come.Jpanel.HuangJpanel;
import org.come.until.CutButtonImage;

import javax.swing.*;

public class HuanPiConfig2 {
    private static HuangJpanel huangJpanel;//黄大小面板

    static {
        huangJpanel= HuangJframe.getHuangJframe().getHuangJpanel();}
    public static void huanpi(int type) throws Exception {

        /**
         *   黄大小面板
         */
        if (huangJpanel!=null){
            huangJpanel.setIcon(new ImageIcon("skin/8100226/button/黄大小水墨/黄大小水墨.png"));
            huangJpanel.getXuanyu().setIcons(CutButtonImage.cuts("skin/8100226/button/黄大小水墨/B59.png"));
            huangJpanel.getXuanyu().setColors(UIUtils.COLOR_BTNPUTONG);
            huangJpanel.getJinbi().setIcons(CutButtonImage.cuts("skin/8100226/button/黄大小水墨/B59.png"));
            huangJpanel.getJinbi().setColors(UIUtils.COLOR_BTNPUTONG);
            huangJpanel.getDashuang().setIcons(CutButtonImage.cuts("skin/8100226/button/黄大小水墨/B59.png"));
            huangJpanel.getDashuang().setColors(UIUtils.COLOR_BTNPUTONG);
            huangJpanel.getDa().setIcons(CutButtonImage.cuts("skin/8100226/button/黄大小水墨/B59.png"));
            huangJpanel.getDa().setColors(UIUtils.COLOR_BTNPUTONG);
            huangJpanel.getXiao().setIcons(CutButtonImage.cuts("skin/8100226/button/黄大小水墨/B59.png"));
            huangJpanel.getBaozi().setIcons(CutButtonImage.cuts("skin/8100226/button/黄大小水墨/B59.png"));
            huangJpanel.getBaozi().setColors(UIUtils.COLOR_BTNPUTONG);
            huangJpanel.getMai().setIcons(CutButtonImage.cuts("skin/8100226/button/黄大小水墨/18.png"));
            huangJpanel.getMai().setColors(UIUtils.COLOR_BTNPUTONG);
            huangJpanel.getGold().setBounds(140-20, 168+2, 160, 15);

        }

        /**
         *   黄大小面板
         */
        if (huangJpanel!=null){
            huangJpanel.setIcon(new ImageIcon("inkImg/hongmu/黄大小红木/黄大小红木.png"));
            huangJpanel.getXuanyu().setIcons(CutButtonImage.cuts("inkImg/hongmu/黄大小红木/50x50.png"));
            huangJpanel.getXuanyu().setColors(UIUtils.COLOR_BTNPUTONG1);
            huangJpanel.getJinbi().setIcons(CutButtonImage.cuts("inkImg/hongmu/黄大小红木/50x50.png"));
            huangJpanel.getJinbi().setColors(UIUtils.COLOR_BTNPUTONG1);
            huangJpanel.getDashuang().setIcons(CutButtonImage.cuts("inkImg/hongmu/黄大小红木/50x50.png"));
            huangJpanel.getDashuang().setColors(UIUtils.COLOR_BTNPUTONG1);
            huangJpanel.getDa().setIcons(CutButtonImage.cuts("inkImg/hongmu/黄大小红木/50x50.png"));
            huangJpanel.getDa().setColors(UIUtils.COLOR_BTNPUTONG1);
            huangJpanel.getXiao().setIcons(CutButtonImage.cuts("inkImg/hongmu/黄大小红木/50x50.png"));
            huangJpanel.getXiao().setColors(UIUtils.COLOR_BTNPUTONG1);
            huangJpanel.getBaozi().setIcons(CutButtonImage.cuts("inkImg/hongmu/黄大小红木/50x50.png"));
            huangJpanel.getBaozi().setColors(UIUtils.COLOR_BTNPUTONG1);
            huangJpanel.getMai().setIcons(CutButtonImage.cuts("inkImg/hongmu/黄大小红木/1_png.button.btn_xy.png"));
            huangJpanel.getMai().setColors(UIUtils.COLOR_BTNPUTONG1);
            huangJpanel.getGold().setBounds(140, 168, 160, 15);
        }
        }
    }

